package ydj.cloud.example.common.aspect;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;

@Aspect
public class SessionAspect {

    /**
     * 定义一个切面的切入点
     */
    @Pointcut(value = "within(*)")
    public void test() {
        System.out.println("aspect test");
    }

    @Before(value = "test()")
    public void beforeAdvice() {
        System.out.println("切面前执行");
    }
}
